from django.conf.urls import url, include

from . import views
from .favorites import urls as favorites_urls
from .comments import urls as comments_urls


urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^list/$', views.list, name='list'),
    url(r'^list/(?P<category_id>[0-9]+)/$', views.list, name='list'),
    url(r'^untranslated/$', views.untranslated, name='untranslated'),
    url(r'^tags/$', views.tags, name='tags'),
    url(r'^tag/(?P<tag_id>[0-9]+)/$', views.tag, name='tag'),
    url(r'^(?P<article_id>[0-9]+)/$', views.detail, name='detail'),
    url(r'^recommend/$', views.recommend, name='recommend'),
    url(r'^translate/(?P<section_id>[0-9]+)/$', views.translate, name='translate'),
    url(r'^favorites/', include(favorites_urls, namespace='favorites')),
    url(r'^comments/', include(comments_urls, namespace='comments')),
]
